<?php if (!defined('THINK_PATH')) exit(); /*a:8:{s:79:"/home/wwwroot/www.lxlhome.com/public/../application/index/view/works/index.html";i:1557283991;s:64:"/home/wwwroot/www.lxlhome.com/application/index/view/layout.html";i:1557840856;s:68:"/home/wwwroot/www.lxlhome.com/application/index/view/common/nav.html";i:1556709540;s:72:"/home/wwwroot/www.lxlhome.com/application/index/view/common/tab_nav.html";i:1556786393;s:69:"/home/wwwroot/www.lxlhome.com/application/index/view/common/page.html";i:1557035386;s:71:"/home/wwwroot/www.lxlhome.com/application/index/view/common/search.html";i:1556690140;s:71:"/home/wwwroot/www.lxlhome.com/application/index/view/common/footer.html";i:1557072396;s:72:"/home/wwwroot/www.lxlhome.com/application/index/view/common/message.html";i:1556950967;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
    <title><?php echo $web_setting['web_name']; ?></title>
    <meta name="description" content="<?php echo $seo_setting['description']; ?>"/>
    <meta name="keywords" content="<?php echo $seo_setting['keywords']; ?>"/>
    <link rel="stylesheet" href="/static/common/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/index/css/index.css">
</head>
<body>
<!-- 侧边内容 -->
<div class="sidebar-content">
    <div class="layui-card">
        <div class="layui-card-header">
            <?php if(empty($web_setting['web_logo']) || (($web_setting['web_logo'] instanceof \think\Collection || $web_setting['web_logo'] instanceof \think\Paginator ) && $web_setting['web_logo']->isEmpty())): ?>
            <img src="/static/index/img/100.jpg" alt="<?php echo $web_setting['web_name']; ?>"><br/>
            <?php else: ?>
            <img src="<?php echo $web_setting['web_logo']; ?>" alt="<?php echo $web_setting['web_name']; ?>"><br/>
            <?php endif; ?>
            <span><?php echo $web_setting['web_name']; ?></span>
        </div>
        <div class="layui-card-body">
            <ul>
                <li class="txt">
                    <span><?php echo $article_count; ?></span><br/>
                    <span>文章</span>
                </li>
                <li class="item">
                    <span><?php echo $works_count; ?></span><br/>
                    <span>项目</span>
                </li>
                <li class="visitors">
                    <span id="hits" >
                        <script type="text/javascript" src="//quote.51.la/q?id=20024633&mb=5"></script>
                    </span><br/>
                    <span><?php echo \think\Lang::get('hit_num'); ?></span>
                </li>
            </ul>
        </div>
    </div>
    <ul class="layui-nav">
    <!--侧边导航: -->
    <?php if(is_array($column) || $column instanceof \think\Collection || $column instanceof \think\Paginator): $i = 0; $__LIST__ = $column;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;if($item['name_en'] == strtoupper(\think\Request::instance()->controller())): ?>
    <li data-pjax class="layui-nav-item layui-this">
        <a href="/<?php echo strtolower($item['name_en']); ?>.html"><?php echo $item['name']; ?><br/><?php echo $item['name_en']; ?></a>
    </li>
    <?php else: ?>
    <li data-pjax class="layui-nav-item">
        <a href="/<?php echo strtolower($item['name_en']); ?>.html"><?php echo $item['name']; ?><br/><?php echo $item['name_en']; ?></a>
    </li>
    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>

<!-- 右侧内容区域 -->

<!-- 主要内容 -->
    <!-- 主要内容 -->
<div class="main works">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul id="tabBox" class="layui-tab-title">
    <?php if(is_array($column) || $column instanceof \think\Collection || $column instanceof \think\Paginator): $i = 0; $__LIST__ = $column;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;if($item['name_en'] == strtoupper(\think\Request::instance()->controller())): if(is_array($item['children']) || $item['children'] instanceof \think\Collection || $item['children'] instanceof \think\Paginator): $i = 0; $__LIST__ = $item['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;if(!(empty(\think\Request::instance()->param('column_id')) || ((\think\Request::instance()->param('column_id') instanceof \think\Collection || \think\Request::instance()->param('column_id') instanceof \think\Paginator ) && \think\Request::instance()->param('column_id')->isEmpty()))): if(\think\Request::instance()->param('column_id') == $v['id']): ?>
    <li data-pjax data-id="<?php echo $v['id']; ?>" class="layui-this"><a href="/<?php echo \think\Request::instance()->controller(); ?>/column/<?php echo $v['id']; ?>.html"><?php echo $v['name']; ?></a></li>
    <?php else: ?>
    <li data-pjax data-id="<?php echo $v['id']; ?>" data-url=""><a href="/<?php echo \think\Request::instance()->controller(); ?>/column/<?php echo $v['id']; ?>.html"><?php echo $v['name']; ?></a></li>
    <?php endif; else: if($i == '1'): ?>
    <li data-pjax data-id="<?php echo $v['id']; ?>" class="layui-this"><a href="/<?php echo \think\Request::instance()->controller(); ?>/column/<?php echo $v['id']; ?>.html"><?php echo $v['name']; ?></a></li>
    <?php else: ?>
    <li data-pjax data-id="<?php echo $v['id']; ?>"><a href="/<?php echo \think\Request::instance()->controller(); ?>/column/<?php echo $v['id']; ?>.html"><?php echo $v['name']; ?></a></li>
    <?php endif; endif; endforeach; endif; else: echo "" ;endif; endif; endforeach; endif; else: echo "" ;endif; ?>

</ul>
        <div class="layui-tab-content"></div>
    </div>
    <div class="item">
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <?php if(is_array($data['data']) || $data['data'] instanceof \think\Collection || $data['data'] instanceof \think\Paginator): $i = 0; $__LIST__ = $data['data'];if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
                <div class="layui-col-xs12 layui-col-sm6 layui-col-md3">
                    <div class="img-text">

                            <?php if(empty($item['pic']) || (($item['pic'] instanceof \think\Collection || $item['pic'] instanceof \think\Paginator ) && $item['pic']->isEmpty())): ?>
                            <img width="240" height="170" src="/static/index/img/default.jpg" alt="暂时没有缩略图">
                            <?php else: ?>
                            <img style="cursor:pointer;" onclick="getPhoto(<?php echo $item['id']; ?>)" width="285" height="209" src="<?php echo $item['pic']; ?>" alt="<?php echo $item['title']; ?>">
                            <?php endif; if(empty($item['works_url']) || (($item['works_url'] instanceof \think\Collection || $item['works_url'] instanceof \think\Paginator ) && $item['works_url']->isEmpty())): ?>
                        <a href="javascript:;">
                        <?php else: ?>
                            <a target="_blank" href="<?php echo $item['works_url']; ?>">
                        <?php endif; ?>
                            <p><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"><?php echo $item['title']; ?></font></font></p>
                        </a>
                    </div>
                </div>
                <?php endforeach; endif; else: echo "$empty" ;endif; ?>
            </div>
        </div>

        <!--分页-->
        <?php 
        $pageMethod = '/works';
         ?>
        <script>
    //数据总数
    var pageTotal = <?php echo isset($data['total'])?$data['total']:5; ?>;
    //当前分布
    var current_page = <?php echo isset($data['current_page'])?$data['current_page']:1; ?>;
    //每页显示多少条
    var limit = <?php echo isset($data['limit'])?$data['limit']:1; ?>;
    //分页连接
    var pageUrl = "<?php echo isset($pageMethod)?$pageMethod:'/message'; ?>";
    //搜索关键词
    var search_name = "<?php echo \think\Request::instance()->param('search_name'); ?>";

</script>
<div id="page"></div>
    </div>
    <script>
        function getPhoto(id){
            $.getJSON("<?php echo url('getPhoto'); ?>",{id:id}, function(json){
                layer.photos({
                    photos: json
                    ,anim: 5 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
                });
            });
        }
    </script>
</div>



<!-- 搜索框 -->
<div class="seach">
    <form class="layui-form seach-box" method="get" action="/search.html">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn"><i class="layui-icon layui-icon-search"></i></button>
                <input type="text" value="<?php echo (\think\Request::instance()->param('search_name')) ? \think\Request::instance()->param('search_name') : ''; ?>" name="search_name" lay-verify="required" placeholder="搜索相关" required autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>


<script src="/static/common/jq/jquery.min.js"></script>
<script src="/static/common/lib/layui/layui.js"></script>
<script src="/static/common/lib/pjax/jquery.pjax.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/common/lib/ie/html5.min.js"></script>
<script src="/static/common/lib/ie/respond.min.js"></script>
<![endif]-->
<div style="text-align: center;" >
    <?php echo $web_setting['statistics']; ?>
</div>

<script>
    layui.config({
        base: '/static/index/js/'
    }).use('layBlog');
</script>
<script>
    layui.use('code', function(){
        layui.code({
            elem: 'pre',
            about: false
        });
    });
</script>
<script>
    layui.use('util', function(){
        var util = layui.util;
        //执行
        util.fixbar({
            top: true
        });
    });
</script>
<script id="LAY-msg-tpl" type="text/html">
    <li>
        <img src="{{ d.avatar }}" alt="">
        <div class="list-txt">
            <p class="max-title">
                <span class="name">{{ d.name }}</span>
                <span class="time">{{ d.time }}</span>
            </p>
            <p class="list-content">{{ d.content }}</p>
        </div>
    </li>
</script>

<script>
    $('#hits').text($('#hits').text().trim().replace(/[^0-9]/ig,""));
</script>
</body>
</html>